<script setup>
// 静态热搜数据
const hotSearchList = [
  { id: 1, keyword: 'Nike Air Max', rank: 1 },
  { id: 2, keyword: 'Adidas Ultraboost', rank: 2 },
  { id: 3, keyword: 'Jordan 1 Retro', rank: 3 },
  { id: 4, keyword: 'Yeezy 350 V2', rank: 4 },
  { id: 5, keyword: 'New Balance 574', rank: 5 },
  { id: 6, keyword: 'Puma Suede', rank: 6 },
  { id: 7, keyword: 'Converse Chuck 70', rank: 7 },
  { id: 8, keyword: 'ASICS Gel-Lyte V', rank: 8 },
  { id: 9, keyword: 'Vans Old Skool', rank: 9 },
  { id: 10, keyword: 'Reebok Club C 85', rank: 10 }
]
</script>

<template>
  <div class="hot-search">
    <h3>🔥 今日热搜</h3>
    <ul>
      <li v-for="(item, index) in hotSearchList" :key="item.id" :class="{ top: index < 3 }">
        <span class="rank">{{ index + 1 }}</span>
        <span class="keyword">{{ item.keyword }}</span>
      </li>
    </ul>
  </div>
</template>

<style scoped lang="scss">
.hot-search {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 50%;
  font-family: Arial, sans-serif;
}

.hot-search h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.hot-search ul {
  list-style: none;
  padding: 0;
}

.hot-search li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  font-size: 14px;
  color: #666;
}

.hot-search li:hover {
  color: #ff4400;
  cursor: pointer;
}

.rank {
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #999;
}

.top .rank {
  background-color: #ff4400;
  color: #fff;
}
</style>
